<!-- if !IS_AJAX -->

<div class="header cl {if $jnarrow}jnarrow{/if}">
	<div class="logo cl">
		<a href="__APPROOT__/?m=dashboard" class="unpjax"><img src="images/logo.jpg" /></a>
	</div>
	<div class="menu cl">
		<div class="narrow">
			<a class="fa fa-outdent" href="javascript:void(0);" onclick="toggle_jnarrow();"></a>
		</div>
		<div class="menulist">
			<ul class="cl">
				<!-- foreach $headMenu -->
				<li {if $current==1}class="cur"{/if} data-menuId="{$__i}"><a href="javascript:void(0);">{$name}</a></li>
				<!-- /foreach -->
			</ul>
		</div>
	</div>
	<div class="user-info cl">
		<ul>
			<li><a href="?m=dashboard&a=redirectindex" target="_blank" class="unpjax"><span class="fa fa-eye fa-fw"></span>查看</a></li>
			<li><a href="javascript:void();">{$user[username]}<span class="fa fa-caret-down fa-fw"></span></a>
				<ul>
					<li><a href="?m=admin&a=password">修改密码</a></li>
					<li><a href="?m=authorized&a=logout">退出</a></li>
				</ul>
			</li>
		</ul>
	</div>
</div>
<div class="left-menu {if $jnarrow}jnarrow{/if}">
	<!--带搜索框的下拉菜单-->
	<div class="sitesel">
		<div class="dowebok">
			<select name="siteselect" class="siteselect" onchange="redirect_site(options[selectedIndex].value)">
				<option value="-1" selected="selected">请选择站点</option>
				<!--foreach $allyuming-->
				<option value="{$id}" {if $currentYuming[id]==$id}selected{/if} >{$name}</option>
				<!--/foreach-->
			</select>
			<script>
				$('select[name=siteselect]').select2();
				function redirect_site(siteid){
					var reg = new RegExp(/\&yuming_id=[\d\-]*/g);
					var href = window.location.href.replace(reg, "") + "&yuming_id=" + siteid; 
					$.pjax({url:href, container: '.rightframe', fragment:'body', timeout:8000 });  
				}
			</script>
		</div>
	</div>
	<div class="left-menu-list"></div>
</div>

<!--eval echo '<div class="rightframe">'; -->

<!-- /if -->